﻿using Cl.Entity.DataBaseEntity.Test;
using Cl.Repository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cl.Service.Service.Test
{
    public class TestService : ITestService
    {

        #region 依赖注入

        private ClRepository<TemplateDemo> _templateRepository;

        public TestService()
        {
            //Repository<Template> templateRepository

            //_templateRepository = templateRepository;
        }

        #endregion

        #region 接口实现

        public async Task<string> GetTestStr()
        {
            var data = await _templateRepository.GetByIdAsync(1);
            var a = _templateRepository.AsQueryable().ToList();
            return "Test";
        }

        public bool FalseDelete()
        {
            return _templateRepository.ClLogicDelete(it => it.Nmae == "");
        }

        #endregion

        #region 私有方法



        #endregion
    }
}
